Repository navigation
feat(spec): a named import mapping's label is translatable at mappings.NAME.label - #34976
Conversation
Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-Authored-By: Claude <noreply@anthropic.com>
…2 precedence row Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-Authored-By: Claude <noreply@anthropic.com>
… ledger Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-Authored-By: Claude <noreply@anthropic.com>
…and the strictness ledger counts Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-Authored-By: Claude <noreply@anthropic.com>
… the ADR-0146 D2 label order Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs Co-Authored-By: Claude <noreply@anthropic.com>
…ta list parity census carries the mapping type Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…s; os i18n check reports i18n/missing-mapping Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…table carry the mappings group; showcase translates its import mapping Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
… page and import mappings; changeset Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…g's label precisely Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
…c imports at collection Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
📓 Docs Drift CheckThis PR changes 5 package(s): 6 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin bb21f2fd6a1fa106b3f4ac6a8f7a969edc80194c && git checkout bb21f2fd6a1fa106b3f4ac6a8f7a969edc80194c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4443014630c094cde840f9dd0b0b45ade45b48d9 2842767b2acffbdccdd85ad9d700a229d61fbe6c && git checkout -B drift-repro 4443014630c094cde840f9dd0b0b45ade45b48d9 && git merge --no-ff 2842767b2acffbdccdd85ad9d700a229d61fbe6c
node scripts/docs-audit/affected-docs.mjs --json 4443014630c094cde840f9dd0b0b45ade45b48d9
|
…pp, book and mapping packaged-base accessors The five per-accessor docblocks are folded into one on getPackagedPageBase, which names each accessor and keeps every statement; the other four carry a one-line pointer. protocol.ts is back under its facade line ceiling with the mapping forwarder in. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 review · 2026-11-17T21:27ZL1: REWORK What I read at this head
ChecklistShape. Draft,
All three match the amendment. The UI half is #34961, which I ACCEPTed in 6959003257. Scope. The files match the seat-approved measured list, plus the five extras the report names: the strictness-ledger count, the objectql bare-slot test in place of the planned metadata-protocol test, Changeset. It bumps minor on spec, metadata-protocol, rest, lint, cli, app-shell and i18n, which are all the published packages whose src moved. objectql and runtime carry test edits only. The showcase is Code.
Tests. The commands are real and exit codes are recorded.
Must-fixM1. The platform checklist's served-vocabulary clause is now false. The file is The clause scores
At this head these are eighteen, seventeen and seventeen, and the list has no This is the same class as #34914's M1. Fix it in this PR:
While you are there: Re-run Should-fixNone. Notes
RoutingL1 REWORK on M1. A delta review from this head is enough. This is a Clause-② widening with |
…ved vocabulary; the changeset names the protocol class i18n.surface-matrix revision 16: acceptance[7].clause counts eighteen / seventeen / seventeen groups and names `mappings`; the appTranslationDataShape source line names all seventeen app groups, `hooks` included. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 delta review · 2026-11-17T22:38ZL1: ACCEPT This is a delta from ab48a19, whose REWORK was 6961500471. This verdict supersedes it. What I read
M1: resolved
The rest of the delta
Must-fixNone. Should-fixNone. Notes
CI at review timeThere are 74 check-runs on this sha: 63 success, 11 skipped (opt-in lanes and the body-edit re-run's skipped labelers), 0 failed, 0 in progress. That includes:
RoutingL1 ACCEPT. This is a Clause-② widening with |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: Inputs read: card #34939 (body and all 7 comments: triage 6956161396, claims 6956466284 and 6960654625, seat amendment 6957676841, dev reports 6958551125, 6960519645, 6961409475, 6962332163); PR #34976 body and its 42-file list; the net diff of the head against its merge base Check-runs on ① Derived judgmentsAccept-set changes the diff implies:
Public-surface changes:
② Semver levelThe changeset Clause-②: yes (widening) — correct, and consistent across the claim (6960654625), the PR body and the changeset. The line names the four schemas, ③ Boundary flags
The six files beyond the dev's measured 36-file list, each judged:
④ Design judgmentNo must-fix, no should-fix.
Implementing files, against the contract:
nit — the changeset's Clause-② line lists Outside the diff, for the seat (not a finding on this head, and not measured): the save door's translated-echo restore ( Implemented-by: VERDICT: PASS |
…pping-translation-group
…s docs on the merged tree The os-regen driver kept the branch side of these four artifacts in the merge of origin/main; regenerated from the merged tree they carry main's actionRefusalMessageKey and action refusal translations beside the mappings group. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Seat provenance · merge-forward · 2026-11-17T23:07ZRegen-provenance: 6963175297 · Read by the seat: the net diff against main is byte-identical before and after ( |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs CI note · area o3-B · 2026-11-17T23:18Z
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs Landing · area o3-B · 2026-11-17T23:48Z
State change: ready for review plus auto-merge (merge queue). Card #34939 closes on merge via |
Fixes #34939
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up owed — #34962 (skills/objectstack-i18n/SKILL.md group list)
Claim: issuecomment-6956466284, seat amendment issuecomment-6957676841 (route A: label only, packaged-base guard in, description out). This PR is part (1) of the card. Parts (2) and (3), the import wizard's mapping step and preview, are in the UI-half PR #34961. Both are needed to close the card's three symptoms.
维护者速读
mappings分组,只有一个键mappings.NAME.label。GET /meta/mapping(列表与单条)按读者语言返回已命名导入映射的标签。os i18n extract/os i18n check/os validate、Studio 翻译预览与翻译表都认识这个分组。Inquiry feed (marketing CSV))。packages/metadata-protocol/src/protocol.ts在 main 上恰好处于门面行数上限 11705。按席位裁决(路线 B),把 page/dataset/app/book/mapping 五个 packaged-base 访问器的注释合并为一份共享契约,逐条保留原有陈述,文件现为 11704 行,check:facade-delegation-only通过,未改上限台账。packages/spec/src/system/translation.zod.ts(mappings分组与拒收文案),packages/spec/src/system/i18n-resolver.ts的translateMapping(D2 标签顺序),packages/rest/src/meta-item-read-gate.ts的PACKAGED_BASE_ACCESSORS新行。pnpm --filter @objectstack/runtime exec vitest run src/domains/meta-list-projection-parity.test.ts,预期 1365/1365 通过,其中 zh-CN 读/meta/mappings得到线索导入,en-US 得到Lead feed。What changes
@objectstack/specmappings(keyed by mappingname, one keylabel) onTranslationDataSchema,PlatformTranslationDataSchema,ServedTranslationDataSchemaandTranslationItemSchema.descriptionandfieldMappingare refused with guidance that names where to translate instead (a target field's label isobjects.OBJECT.fields.FIELD.label). The singularmappingand the label aliasesname/titleare refused with the declared spelling named. The group counts in the refusal texts moved from sixteen to seventeen (application) and from seventeen to eighteen (platform).translateMapping, registered inMETADATA_DOCUMENT_TRANSLATORS.TRANSLATABLE_METADATA_TYPESis derived from that table, soGET /meta/mapping(list and item) is localized at the REST boundary with no further wiring. The label follows the ADR-0146 D2 order (labelCatalogs/valueOverridesPackagedBase), liketranslateBook.MappingSchema.label's.describenames the translation key.mappingslive, with itslabelchild) and the strictness-ledger counts.@objectstack/metadata-protocol/@objectstack/rest:mappingjoinsPackagedArtifactBaseType.getPackagedMappingBaseis on the protocol, forwarding to the facet. A['mapping', 'getPackagedMappingBase']row goes inPACKAGED_BASE_ACCESSORS. A.customoverride's label is therefore judged against the shipped base, not read as override-authored.@objectstack/lint:mappings.NAME.label(sourcemapping).validate-translation-referencesresolvesmappings.NAMEagainst the stack's mappings and sibling packages' mappings. An unknown name istranslation-target-unknownwith the nearest name suggested.@objectstack/cli:os i18n checkreports gaps asi18n/missing-mapping.--helpnames "import mappings".@object-ui/app-shell/@object-ui/i18n:mappingitems.spec-translationsnamespaces the group.showcase_inquiry_feed, the one mapping any example authors.i18n-standard.mdx(group list and count),ui/translations.mdx(a row, and the resolved-types list),import-mappings.mdx(thelabelrow names the key).docs/qa/platform-checklist/areas/i18n.json, the file added in L1 round 1): itemi18n.surface-matrixmoves to revision 16.acceptance[7].clausenow counts eighteen platform groups, seventeen per-app groups and seventeen scored groups, and namesmappingsin the list. Before, a tester would have scored the showcase'smappings.showcase_inquiry_feedas outside the vocabulary.appTranslationDataShapesource line names all seventeen app groups. It used to say fifteen and leave outhooks, which was stale before this PR.Tests
packages/spec/src/system/i18n-mapping.test.ts(new):description/fieldMappingguidance is shown;translateMappingis registered;i18n-resolver.test.ts: amappingrow in the ADR-0146 D2 precedence table (now "all nine types").mappingprecedence row. objectql: the bare-slot envelope test's label-order types gainmapping.mapping/mappings. Over HTTP, zh-CN/meta/mappingsserves线索导入and en-US/meta/mappingservesLead feed. The item read is pinned too.validate-translation-referencescovers four cases: a clean name, an orphan with a suggestion, a report name undermappings, and a sibling-declared name.test/i18n-mapping-walk.test.ts(new): the extract keys, a schema-valid scaffold, and a gap reported assource: 'mapping'.scripts/ablation-replace.mjs(anchor hit 1/1; restore proven as blob == HEAD and an emptygit diff HEAD):mapping: translateMappingfrom the dispatch table fails 9 tests and passes 541 (i18n-mappingand the D2 rows);mappingsrow from the orphan table fails 2 tests and passes 252.Acceptance notes
The facade line ceiling is paid inside
protocol.ts(seat ruling, route B). The per-accessor docblocks ofgetPackagedPageBase,getPackagedDatasetBase,getPackagedAppBase,getPackagedBookBaseand the newgetPackagedMappingBaseare folded into one shared contract ongetPackagedPageBase. That contract names all five accessors. The other four each carry a one-line pointer to it.protocol.tsis now 11704 lines against its ceiling of 11705, with the forwarder in.scripts/facade-delegation-registry.jsonis untouched. Where each folded statement now lives:[#30062]; the PACKAGED (code-layer) declaration a code package ships, before a.custompair's declared override replaces it (ADR-0146 D2)[#30062])getPackagedDashboardBase, answered the same waygetPackagedDashboardBase"getPackagedPageBase, and mapping ofgetPackagedBookBase, answered the same way@objectstack/spec/system) compares against as itspackagedBase; the catalog is the packaged translation of exactly this body, so it may only replace a string the served item still carries unchanged (ruling record 6631250894: pair, then the override's own label, then the base's translation)translatePage,pages.NAMEcrm_welcomeoverride labelledOVpagewas served, and zh-CN got the base's欢迎页translateDataset, each string ofdatasets.NAME(label, description, dimension and measure labels)translateApp, each string ofapps.NAME(label, description and navigation labels, a node judged against the base's node of the sameid)translateBook, each string ofbooks.NAME(label, description and group labels, a group judged against the base's group of the samekey)translateMappingcompares the served label (mappings.NAME.label, ADR-0146 D2)undefinedfor an item no code package ships, an unknown or empty name, or a registry double without the lookup, which the translator reads as the catalog applying unchanged ("the same uncertainties" for the other four)descriptionstays out (seat ruling):MappingSchemadeclares none.Other spelled group counts and lists. At
f23f65d8c8the tree was grepped overdocs/qa,content/docs,scripts,packages,ui,examplesandskills. Every spelled translation-group count or list either is correct (i18n-standard.mdx,translation.zod.ts) or was fixed above (i18n.json). Two places were left alone:scripts/check-i18n-walk-parity.mjs'sRECORDED_*arrays are a declared sample, not a source of truth;skills/objectstack-i18n/SKILL.mdstays with skills(objectstack-i18n): the group list does not teach the new mappings translation group (follow-up owed by #34939) #34962.The changeset's Clause-② line now names
ObjectStackProtocolImplementation.getPackagedMappingBase(L1 N1).skills/**is untouched. The group list inskills/objectstack-i18n/SKILL.mdis owed on skills(objectstack-i18n): the group list does not teach the new mappings translation group (follow-up owed by #34939) #34962.Verification
The PR head is
f23f65d8c8. It is a merge oforigin/main(fb5c42d10c; none of the 24 files it brings overlaps this PR's source, andprotocol.tsstays at 11704 lines) on top of32942ddd5c, which carries the checklist correction and the changeset wording.At f23f65d, L1 round 1
pnpm check:platform-checklist: exit 0 (16 areas, 433 items).node scripts/pm/check-governed-merges.mjs --pr 34976: NOT governed (0 of 42 paths hit the register), 704 changed lines (+615 / -89), under the 3000 threshold.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackre-derived the same 139 commands, and all ran again at this head.--ranwith exit codes: 139 derived, 138 run, 1 NOT-MEASURED, 0 UNRUN. Every run family exited 0, includingcheck:facade-delegation-only,check:i18n-coverageandcheck:platform-checklist. NOT MEASURED:check:dual-build-cjs-loads, exit 3 (whole-workspacedist/prerequisite). CI runs it.packages/i18n/, Test Files 104 passed (104), Tests 1959 passed, 13 skipped.The previous round's head,
ab48a19f39, adds the docblock fold on top of9d26d5a770. The fold changes comments only, inpackages/metadata-protocol/src/protocol.ts.At ab48a19, after the fold
pnpm check:facade-delegation-only: exit 0.protocol.tsis 11704 lines against a ceiling of 11705, with 322 delegations and 1 named exception.pnpm --filter @objectstack/metadata-protocol typecheck: exit 0, after building its dependency closure.pnpm --filter @objectstack/metadata-protocol build: exit 0.meta-dashboard-view-i18n-explicit-override: Tests 114 passed (114);protocol-custom-override-bare-slot-envelope: Tests 114 passed (114).node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackre-derived the same 139 commands, and all ran again at this head.--ranwith exit codes: 139 derived, 138 run, 1 NOT-MEASURED, 0 UNRUN. Every run family exited 0, includingcheck:i18n,check:i18n-coverage,check:i18n-walk-parity,check:skill-examplesandcheck:doc-formula-expressions.pnpm check:dual-build-cjs-loads, exit 3 (PREREQUISITE NOT MET). It reads every package'sdist/, and this checkout did not build the whole workspace. CI runs it.At 9d26d5a, before the fold (unchanged by it)
@objectstack/spec, thei18n-mapping,i18n-resolverand translation suites (4 files): Tests 792 passed.e2ac16438e:i18n-walk,validate-translation-referencesandrule-explanations: Tests 274 passed (274);meta-list-projection-parity: Tests 1365 passed (1365).0663ffad1f: Test Files 4 passed (4), Tests 27 passed (27). The integration tier is left to CI.translationTable.test.ts: Tests 1809 passed (1809);packages/i18n/: Tests 1896 passed, 13 skipped;3a7c72e8a0: Tests 63 passed (63).@objectstack/lint,@objectstack/cli,@objectstack/rest, and@object-ui/i18n/@object-ui/app-shelltype-check.Generated by Claude Code